package com.etocrm.saas.lib.base.feign.configuration;

import com.etocrm.saas.lib.base.feign.codec.decode.SaasFeignDecoder;
import com.etocrm.saas.lib.base.feign.codec.decode.SaasFeignErrorDecoder;
import feign.codec.Decoder;
import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Bean;

/**
 * Created by Xs on 2022/11/23.
 */
public class FeignConfig {


    @Bean
    public Decoder uamFeignDecoder() {
        return new SaasFeignDecoder();
    }

    @Bean
    public ErrorDecoder feignErrorDecoder() {
        return new SaasFeignErrorDecoder();
    }
}
